Skip to content

Conversation

mnocon
Copy link
Contributor

@mnocon mnocon commented Jul 10, 2025

Target: 4.6, 5.0

PHPStan is currently failing with:

 ------ --------------------------------------------------------------------------------------------------------------------------------------------------------------
  Line   discounts/src/Command/ManageDiscountsCommand.php
 ------ --------------------------------------------------------------------------------------------------------------------------------------------------------------
  60     Class Ibexa\Contracts\DiscountsCodes\Value\Struct\DiscountCodeCreateStruct constructor invoked with 4 parameters, 5 required.
         🪪 arguments.count
  64     Parameter #4 $creatorId of class Ibexa\Contracts\DiscountsCodes\Value\Struct\DiscountCodeCreateStruct constructor expects int|null, DateTimeImmutable given.
         🪪 argument.type
  81     Class Ibexa\DiscountsCodes\Value\DiscountCondition\IsValidDiscountCode constructor invoked with 2 parameters, 3 required.
         🪪 arguments.count
 ------ --------------------------------------------------------------------------------------------------------------------------------------------------------------

The code fixes are done in #2810 , but they cannot be merged yet - because we must wait for 4.6.22 before we merge.

Because of that, I'm adding these issues to the baseline, so that the we don't miss something else important

@github-actions
Copy link

Preview of modified files: no change to preview.

@mnocon mnocon marked this pull request as ready for review July 10, 2025 08:12
@mnocon mnocon requested a review from a team July 10, 2025 08:13
@ezrobot ezrobot requested review from adriendupuis, dabrt and julitafalcondusza and removed request for a team July 10, 2025 08:13
@mnocon mnocon merged commit cd6d995 into 4.6 Jul 16, 2025
11 checks passed
@mnocon mnocon deleted the fix-phpstan branch July 16, 2025 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants